aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]/transactions
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-28 12:28:47 -0700
committerAdam Soltys <[email protected]>2022-09-28 12:28:54 -0700
commit544637e33ad23384ce33ff0c161b53b4cdc529f1 (patch)
tree746ffa707ff42857213778113b23ea77d73abd31 /src/routes/[username]/transactions
parent1754ccd174e9f66e1ec04a1eb71b307e8108f8f3 (diff)
downloadcoinos-ui-544637e33ad23384ce33ff0c161b53b4cdc529f1.tar.gz
coinos-ui-544637e33ad23384ce33ff0c161b53b4cdc529f1.zip
animated balance
Diffstat (limited to 'src/routes/[username]/transactions')
-rw-r--r--src/routes/[username]/transactions/[...page]/+page.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/[username]/transactions/[...page]/+page.svelte b/src/routes/[username]/transactions/[...page]/+page.svelte
index 43b7101e..3042e574 100644
--- a/src/routes/[username]/transactions/[...page]/+page.svelte
+++ b/src/routes/[username]/transactions/[...page]/+page.svelte
@@ -2,7 +2,7 @@
import { AppHeader } from '$comp';
import { newPayment } from '$lib/store';
import { t } from '$lib/translations';
- import { f, s } from '$lib/utils';
+ import { f, s, sats } from '$lib/utils';
export let data;
let { user } = data;
@@ -47,7 +47,7 @@
<div class="grid grid-cols-3 border-b pb-5">
<div class="font-bold">
<span class="block mb-1"
- >{tx.amount > 0 ? '+' : ''}{f(tx.amount * (tx.rate / 100000000), tx.currency)}
+ >{tx.amount > 0 ? '+' : ''}{f(tx.amount * (tx.rate / sats), tx.currency)}
</span>
<span class="text-secondary"